// npm install aliyun-api-gateway --save
'use strict';

const co = require('co');
const SimpleClient = require('./lib/simple-client.js');

const appcode = '你自己的AppCode';
const client = new SimpleClient(appcode);

const url = 'http://10.1.1.57:9999/user/v2/login/miniapp';

// async function get() {
//   var result = await client.get(url, {
//     data: {kahao: '6215982582010042122'}
//   });
//   console.log(result);
// }

// get();

async function post(){
	var result = await client.post(url, {
	    data: {
			
	    },
	    headers: {
	      accept: 'application/json'
	    }
	  });
	  console.log(result);
}

post();
